package com.jeesite.modules.digitalize.entity.vo.component;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeesite.modules.digitalize.entity.DigitalizeComponentVersion;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author patronli
 * @Description: 资源库文件列表
 * @date 2023年09月12日 10:29:22
 */
@Data
public class ConponentsVo {
    public ConponentsVo() {
    }

    public ConponentsVo(Long id, Integer parentId, Integer fileType, String fileName, Date createDate) {
        this.id = id;
        this.parentId = parentId;
        this.fileType = fileType;
        this.fileName = fileName;
        this.createDate = createDate;
    }

    public ConponentsVo(Long id, Integer parentId, Integer fileType, String fileName, String fileId, Integer transitionStatus, String version, Date createDate, List<DigitalizeComponentVersion> versions, List<ConponentsVo> children) {
        this.id = id;
        this.parentId = parentId;
        this.fileType = fileType;
        this.fileName = fileName;
        this.fileId = fileId;
        this.transitionStatus = transitionStatus;
        this.version = version;
        this.createDate = createDate;
        this.children = children;
        this.versions = versions;
    }

    @ApiModelProperty("id")
    Long id;
    @ApiModelProperty("parentId")
    Integer parentId;
    @ApiModelProperty("0 文件夹 1 文件")
    Integer fileType;
    @ApiModelProperty("文件文件夹名字")
    String fileName;
    @ApiModelProperty("bimfaceId")
    String fileId;
    @ApiModelProperty("转换状态 0上传成功未转换 1 转换中 2 转换成功 3 转换失败")
    Integer transitionStatus;
    @ApiModelProperty("版本名字")
    String version;
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    Date createDate;
    @ApiModelProperty("子文件")
    List<ConponentsVo> children;

    @ApiModelProperty("构建版本列表")
    List<DigitalizeComponentVersion> versions;


}
